package org.xjc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Author : XJC
 * @Description :用户和角色的关联表
 * @create : 2022/8/26 14:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Entity
@Table(name = "T_USER_ROLE")
@TableName("T_USER_ROLE")
public class UserRoleEntity extends BaseEntity {

    @TableField("USER_ID")
    @Column(name = "USER_ID",columnDefinition = "varchar2(64)")
    private String userId;

    @TableField("ROLE_ID")
    @Column(name = "ROLE_ID",columnDefinition = "varchar2(64)")
    private String roleId;

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return this.roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
